package com.hackintosh.observer.school;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/27
 * @modified By：
 * @version: 1.0
 */
public class RingTest {

    public static void main(String[] args) {
        BellEventSource bell = new BellEventSource();

        BellEventListener teacher = new Teacher();
        BellEventListener student = new Student();
        bell.add(teacher);
        bell.add(student);
        bell.ring(true);
        System.out.println("------------");
        bell.ring(false);
    }

}
